package com.chengyu.core.service.pay;

import com.chengyu.core.domain.form.PayBaseForm;
import com.chengyu.core.exception.ServiceException;
import com.chengyu.core.model.UmsMember;

public interface TyPayService {


    /**
     * 支付商品订单
     *
     * @param member
     * @param payOrderNo
     * @param baseForm
     * @return String
     * @throws Exception 业务异常
     * @author LeGreen
     * @date 2022/6/9
     */
    String orderPay(UmsMember member, String payOrderNo, PayBaseForm baseForm) throws Exception;



    /**
     * 售后退款
     *
     * @param refundNo
     * @throws Exception 业务异常
     * @author LeGreen
     * @date 2022/6/9
     */
    void refund(String refundNo) throws ServiceException;

    /**
     * 取消订单并原路退款
     *
     * @param orderNo
     * @throws Exception 业务异常
     * @author LeGreen
     * @date 2022/6/9
     */
    void cancelAndRefundOrder(String orderNo) throws ServiceException;

}
